<template>
  <div>
    <div class="top">
      <van-nav-bar
        title="用户协议"
        left-text="返回"
        left-arrow
        @click-left="onClickLeft"
        @click-right="onClickRight"
      />
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    onClickRight() {
      Toast("按钮");
    },
  },
};
</script>

<style lang="scss" scoped>
.top {
  .van-nav-bar {
    ::v-deep .van-icon {
      color: #333333;
    }
    ::v-deep .van-nav-bar__text {
      color: #333333;
    }
  }
}
</style>
